Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #vfd -
- #----------------------------------------------
- # jdh@artichoke.org
- # renamed nowforever_vfd.py to /usr/bin/vfd and made it executable
- # Modified serial params in component to match vfd
- # P0-000 2 - use serial for control
- # P0-002 6 - use serial for freq. select
- # P0-007 400 - Max freq allowed, 24k for these
- # Hal component clips at 24k anyway
- # P0-008 100 - Min Freq. Mine came as 0. The spindles are not
- # happy running lower than this
- # P0-055 1 - Modbus slave address
- # P0-56 2 - 9600. (4 for 38.4k)
- # P0-57 0 - 8N1
- #----------------------------------------------
- # renamed nowforever_vfd.py to /usr/bin/vfd and made it executable
- #----------------------------------------------
- loadusr -W vfd
- #Run command to VFD
- net spindle-on motion.spindle-on => vfd.spdvfd.run
- #Fwd command
- net spindle-fwd motion.spindle-forward => vfd.spdvfd.forward
- #Speed to send to VFD
- net spindle-speed-cmd motion.spindle-speed-out => vfd.spdvfd.rpmset
- #Get spindle speed back from VFD - Not sure it is real
- net spindle-speed-in motion.spindle-speed-in <= vfd.spdvfd.outrpm
- #Create at_speed pin
- net spindle-at-speed motion.spindle-at-speed <= vfd.spdvfd.atfreq
- # Try the yoocnc probe
- net touch-probe parport.0.pin-15-in-not => motion.probe-input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement